package com.chenfei.durid;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ImportResource;

/**
 * @author chenfei
 * @description
 * @since 2018/4/3
 */
@ServletComponentScan
@SpringBootApplication
@ImportResource(locations = {"classpath:application-db.xml"})
@MapperScan(basePackages = "com.chenfei.durid.mapper")
@EnableSwagger2Doc
public class DuridApplication {
    public static void main(String[] args) {
        SpringApplication.run(DuridApplication.class);
    }
}
